import request from '@/utils/request'
import {download} from "@/utils/request";

// 添加任务
export function addxdwj(data) {
  return request({
    url: '/yjgl/addxdwj',
    method: 'post',
    data: data
  })
}

// 修改任务
export function updateRwb(data) {
  return request({
    url: '/yjgl/updateRwb',
    method: 'post',
    data: data
  })
}

// 修改任务
export function addApptoken(data) {
  return request({
    url: '/yjgl/addApptoken',
    method: 'post',
    data: data
  })
}
// 查询企业分页
export function getAppRwPage(query) {
  return request({
    url: '/yjgl/getRwPage',
    method: 'get',
    params: query
  })
}

export function getSxlxCount(query) {
  return request({
    url: '/yjgl/getSxlxCount',
    method: 'get',
    params: query
  })
}

export function getMySendMatter(query) {
  return request({
    url: '/yjgl/getMySendMatter',
    method: 'get',
    params: query
  })
}

export function getSxlxCountData(query) {
  return request({
    url: '/yjgl/getSxlxCountData',
    method: 'get',
    params: query
  })
}
export function getXdbmCount(query) {
  return request({
    url: '/yjgl/getXdbmCount',
    method: 'get',
    params: query
  })
}

// 查看任务详情
export function getRwbInfo(query) {
  return request({
    url: '/yjgl/getRwbInfo',
    method: 'get',
    params: query
  })
}
// 删除任务信息
export function delRwByIds(query) {
  return request({
    url: '/yjgl/delRwByIds',
    method: 'get',
    params: query
  })
}

export function getTxlByRwId(query) {
  return request({
    url: '/yjgl/getTxlByRwId',
    method: 'get',
    params: query
  })
}

// 查询反馈列表
export function getFkxxByQyZh(query) {
  return request({
    url: '/yjgl/getFkxxByQyZh',
    method: 'get',
    params: query
  })
}
// 查询反馈列表详情
export function getFkxxInfo(query) {
  return request({
    url: '/yjgl/getFkxxInfo',
    method: 'get',
    params: query
  })
}

export function getFkFj(query) {
  return request({
    url: '/yjgl/getFkFj',
    method: 'get',
    params: query
  })
}

export function getZjxdFkFj(query) {
  return request({
    url: '/yjgl/getZjxdFkFj',
    method: 'get',
    params: query
  })
}

export function getChildOptions(query) {
  return request({
    url: '/yjgl/getChildOptions',
    method: 'get',
    params: query
  })
}

export function getTxlDeptByid(query) {
  return request({
    url: '/yjgl/getTxlDeptByid',
    method: 'get',
    params: query
  })
}
export function getDepartmentList(query) {
  return request({
    url: '/yjgl/getDepartmentList',
    method: 'get',
    params: query
  })
}

export function getDepartmentList1(query) {
  return request({
    url: '/yjgl/getDepartmentList1',
    method: 'get',
    params: query
  })
}
export function getTxlTab() {
  return request({
    url: '/yjgl/getTxlTab',
    method: 'get',
  })
}
export function getSelectUserPage(query) {
  return request({
    url: '/yjgl/getSelectUserPage',
    method: 'get',
    params:query
  })
}

export function submitFk(data) {
  return request({
    url: '/yjgl/submitFk',
    method: 'post',
    data: data
  })
}

//获取选择的用户
export function getSelectUser(data) {
  return request({
    url: '/yjgl/getSelectUser',
    method: 'post',
    data: data
  })
}
//删除选择的用户
export function delSelectUser(query) {
  return request({
    url: '/yjgl/delSelectUser',
    method: 'post',
    data:query
  })
}


export function getUserByRwId(query) {
  return request({
    url: '/yjgl/getUserByRwId',
    method: 'get',
    params: query
  })
}

export function getZjxdUserByRwId(query) {
  return request({
    url: '/yjgl/getZjxdUserByRwId',
    method: 'get',
    params: query
  })
}
export function getUserLabelList(query) {
  return request({
    url: '/yjgl/getUserLabelList',
    method: 'get',
    params: query
  })
}

export function getXdrwByWorkid(query) {
  return request({
    url: '/yjgl/getXdrwByWorkid',
    method: 'get',
    params: query
  })
}
export function messageSendByLimit(data) {
  return request({
    url: '/yjgl/messageSendByLimit',
    method: 'post',
    data: data
  })
}

export function ssmSendByLimit(data) {
  return request({
    url: '/yjgl/ssmSendByLimit',
    method: 'post',
    data: data
  })
}

export function getUserDepartment(query) {
  return request({
    url: '/yjgl/getUserDepartment',
    method: 'get',
    params: query
  })
}
export function andUserByDeptAndLaber(data) {
  return request({
    url: '/yjgl/andUserByDeptAndLaber',
    method: 'post',
    data: data
  })
}

export function delRedisUserByKey(query) {
  return request({
    url: '/yjgl/delRedisUserByKey',
    method: 'get',
    params: query
  })
}


export function exportExcel(data) {
  return download({
    url: '/yjgl/export',
    method: 'post',
    params: data,
  })
}
